package applications.libraryForm.ui.lib;


import java.awt.HeadlessException;

import javax.swing.JFrame;

import org.objectweb.fractal.fraclet.annotations.Component;
import org.objectweb.fractal.fraclet.annotations.Interface;
import org.objectweb.fractal.fraclet.annotations.Requires;

@Component(provides = {@Interface(name = "jFrameItf", signature = org.objectweb.fractal.swing.JFrameItf.class), @Interface(name = "jFrameAttributes", signature = org.objectweb.fractal.swing.JFrameAttributes.class), @Interface(name = "uijframeservice", signature = ontocompo.api.UIJFrameService.class), @Interface(name = "ontocompointrospection", signature = ontocompo.api.OntoCompoIntrospection.class)})

public class LibraryFormDirectoryUI extends JFrame  implements  org.objectweb.fractal.swing.JFrameItf, org.objectweb.fractal.swing.JFrameAttributes, ontocompo.api.UIJFrameService, ontocompo.api.OntoCompoIntrospection {

	private String uid;
	private String applicationName;

	private org.objectweb.fractal.api.Component c;

	@Requires(name = "mainpanel")
	private ontocompo.api.UIContainerService mainpanel;


	public LibraryFormDirectoryUI() throws HeadlessException {
		super();
		this.uid = "applications.libraryForm.ui.lib.LibraryFormDirectoryUI";
		this.applicationName = "LibraryForm";
		System.out.println(this.toString() + "  created!");
	}

	@Override
	public void init() {
		// TODO Auto-generated method stub
		this.mainpanel.init();
		
		this.setTitle("Library Form Application");
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		this.setContentPane(this.mainpanel.getComponentItSelf());

		this.setSize(900, 700);
		this.setVisible(true);
	}

	@Override
	public void setHeight(int arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void setWidth(int arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public String getApplicationName() {
		// TODO Auto-generated method stub
		return this.applicationName;
	}

	@Override
	public JFrame getJFrameItSelf() {
		// TODO Auto-generated method stub
		return this;
	}

	public String toString() {
		return "LibraryFormDirectoryUI";
	}

	@Override
	public org.objectweb.fractal.api.Component getFractalComponent() {
		// TODO Auto-generated method stub
		return this.c;
	}

	@Override
	public String getUid() {
		// TODO Auto-generated method stub
		return this.uid;
	}

	@Override
	public void setFractalComponent(org.objectweb.fractal.api.Component c) {
		// TODO Auto-generated method stub
		this.c = c;
	}

	@Override
	public void setUid(String uid) {
		// TODO Auto-generated method stub
		this.uid = uid;
	}


}
